package com.project.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("consultation")
public class Consultation {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;
    private Long doctorId;
    private Integer status; // 0-待接诊 1-问诊中 2-已完成 3-已取消
    private String diagnosis;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    // 临时字段，不映射到数据库
    @TableField(exist = false)
    private String patientName;

    @TableField(exist = false)
    private String patientAvatar;

}
